package com.riven.redisson.handler;

import com.riven.redisson.message.RedissonMessage;
import org.springframework.messaging.Message;

/**
 * @author riven
 */
@FunctionalInterface
public interface RedissonListenerErrorHandler {

    /**
     * error handler
     *
     * @param message          redisson message
     * @param messagingMessage spring message
     * @param throwable        throwable
     */
    void handleError(RedissonMessage message, Message<?> messagingMessage, Throwable throwable);

}
